package com.xbongbong.paas.log;


import com.xbongbong.paas.log.enums.FilterOperatorEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * mongo查询,单个条件
 * @author kaka
 * @date 2019/1/21 13:53
 * @since v1.0
 * @version v1.0
 */
@Getter
@Setter
@ToString
public class MongoQueryItem {

    /**
     * 字段
     */
    private String field;

    /**
     * 操作符
     */
    private FilterOperatorEnum operator;

    /**
     * 值
     */
    private Object value;

    public MongoQueryItem(String field, FilterOperatorEnum operator, Object value) {
        this.field = field;
        this.operator = operator;
        this.value = value;
    }
}
